﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.Linq;
using System.Collections.Generic;

/// <summary>
/// Description résumée de ConnexionDAO
/// </summary>
public class ConnexionContextDAO 
{
    public DataContext db;
    public String chaine;
   

	public ConnexionContextDAO()
	{
     
        //Said
        this.chaine = @"Data Source=PC-DE-AHAMADA\SQLEXPRESS;Initial Catalog=dbassociation;Integrated Security=True";
        // Gael
        // this.chaine =

      //  this.chaine = @"Data Source=PC-GILLES\SQLEXPRESS;Initial Catalog=dbassociation;Integrated Security=True";

        //this.chaine = @"Data Source=PC-GILLES\SQLEXPRESS;Initial Catalog=dbassociation;Integrated Security=True";

        // Rachid
        //this.chaine = @"Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Documents and Settings\yacine\Bureau\gestionassos\App_Data\dbassociation_.mdf;Integrated Security=True;User Instance=True";

        this.db = new DataContext(chaine);
        // db = new DataContext(chaine); 
      
	}
}
